package com.ogilvy.audi.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.ogilvy.audi.bean.Tactic;
import com.ogilvy.audi.bean.Topic;
import com.ogilvy.audi.dao.TacticDao;
import com.ogilvy.frame.hibernate.BaseDaoImpl;
import com.ogilvy.frame.page.PageTools;
@Repository
public class TacticDaoImpl extends BaseDaoImpl<Tactic> implements TacticDao{
	public  PageTools<Tactic> selectAll(int pageNo, int pageSize){
		StringBuffer hql = new StringBuffer("from Tactic where 1=1");
		PageTools<Tactic> plist = this.findByHql(pageNo, pageSize, hql.toString());
		return plist;
	}
	public  PageTools<Tactic> selectAll(int pageNo, int pageSize, Map<String,Object> condition){
		StringBuffer hql = new StringBuffer("from Tactic where 1=1");
		PageTools<Tactic> plist = this.findByHql(pageNo, pageSize, hql.toString());
		return plist;
	}
	

}
